<?php
declare (strict_types = 1);

namespace app\middleware;

use thans\jwt\facade\JWTAuth;
use think\facade\Request;
use think\facade\Cache;
class Check
{
    /**
     * 处理请求
     *
     * @param \think\Request $request
     * @param \Closure       $next
     * @return Response
     */
    public function handle($request, \Closure $next)
    {

        header('Access-Control-Allow-Origin: *');
        header("Access-Control-Request-Headers: Origin, X-Requested-With,cookie,content-Type, Accept, Authorization");
        header('Access-Control-Allow-Headers:content-type,token,cookie,Authorization,id');



        return $next($request);
    }
}
